﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BDS3M.Controls
{
    public partial class BoxMailForward : System.Web.UI.UserControl
    {
        public static int iduser;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Username"] == null)
            {
                Response.Redirect("/home");
            }
            if(!Page.IsPostBack)
            {
               
                DataTable dt = DAL.DCollector.DBCollector.Instance.StoredSelectAllTableWhereID("tbl_Message","Message_ID",iduser.ToString());
               
                txtSuject.Text = dt.Rows[0]["Message_Subjec"].ToString();
                CKEditorForward.Text = dt.Rows[0]["Message_Content"].ToString();
            }
        }
    }
}